import request from "@/utils/request";

//1.获取配置好表单的上报事件类型列表
export function getReportEventTypeList(params) {
    return request({
        url: `/pflow/wflowConfig/typeInfoList`,
        method: "get",
        params
    });
}

//2.获取配置好表单的上报事件事件等级
export function getReportEventLevelList(params) {
    return request({
        url: `/pflow/wflowConfig/list`,
        method: "get",
        params
    });
}

//3.获取字典事件等级
export function getEventTypeList(params) {
    return request({
        url: `/system/dict/data/list`,
        method: "get",
        params
    });
}

//获取上报表单
export function getReportForm(data) {
    return request({
        url: `/form/info/`,
        method: "post",
        data
    });
}



//获取配置的表单内的数据
export function getReportFormData(data) {
    return request({
        url: `/from/data/getSubmitData`,
        method: "post",
        data
    });
}